package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;


import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_operator_event_details")
public class OperatorEventDetails extends IdEntity {
	private String eventTitle;  //活动标题
	private String eventPicUrl;//图片链接地址 pc
	private String eventPicAppUrl;//app海报
	private String eventInfor;//活动详情
	private Date eventStartTime;  //活动开始时间 
	private String eventPlace; //活动地点市区
	private Integer state; // 状态`	 0 为发布 1未开始 2已开始 3已结束 4已删除
	private String founder; //创建人
	private Date eventEndTime; //结束时间
	private Integer registrationChannel; //报名渠道
	private Integer eventJoinPersonNum;//参加活动人数
	private Integer enrollment; //最大报名人数
	private Integer weight; // 权重
	private Integer isMoney; // 是否收费
	private String organizer; //举办方
	private Integer eventType; //活动类型 0线上 1线下
	private Date signupStartTime;//报名开始时间
	private Date signupEndTime;//报名结束时间
	private Integer maxPurchaseRestriction;//最大购买限制
	private Integer minPurchaseRestriction;//最小购买限制
	private Integer unitNum;//总过可以购买次数
	private Float unitPrice;//单价
	private String activityTypeId;//活动分类
	private Integer availability;//是否生效 0 未生效 1 已生效
	private Date releaseTime;//发布时间
	private Integer luckDrawType;//抽奖限制 0 总共 1 每天 
	private Integer luckDrawNum;// 限制 数量
	private String luckName;//名称
	private String eventUrl;//h5 详情页地址链接
	private String eventCounty;//活动地点县区
	private String eventDetailedAddress;//活动详细地址
	private String registrationFormDetails;//
	private Integer agreeOrNot;//1是有报名表单0是没有
	
	@Transient
	private String name;
	@Transient
	private String pname;
	@Transient
	private String aname;
	@Transient
	private Integer activePayment;
	
	@Transient
	private Integer page;
	@Transient
	private Integer size;
	
	@Transient
	public Integer getPage(Integer page){
		return page;
	}
	@Transient
	public Integer getSize(Integer size){
		return size;
	}
	
	@Transient
	private String id;
	
	@Transient
	public String getId(String id){
		return id;
	}
	
	@Transient
	private String stratTime;// 活动时间
	@Transient
	private String endTime;//
	
	@Transient
	public String getStratTime(String stratTime){
		return stratTime;
	}
	@Transient
	public String getEndTime(String endTime){
		return endTime;
	}
	
	
	 
}
